<!-- Modal -->
<div class="modal-dialog wide" style="width: 550px;">
<div class="modal-content">
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title" id="myModalLabel">
    <#if ykGahz??>
        <#if ykGahz.id??>
            编辑
        <#else>
            新增
        </#if>
    </#if>
    </h4>
</div>
<div class="modal-body">
    <div id="errorMessage"><#include "../../message.ftl" /></div>
    <form class="form-horizontal" role="form" id="ykGahzForm" method="post"
          action="${absoluteContextPath}/yk/ykGahz/save">
    <#if ykGahz??>
        <#if ykGahz.id??>
            <input type="hidden" name="id" value="${ykGahz.id?c}"/>
        <#else>
            <input type="hidden" name="id" value=""/>
        </#if>
    </#if>
        <div class="row">
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="id" value="${ykGahz.id!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">订单编号</label>

                <div class="col-sm-6">
                    <input name="billId" value="${ykGahz.billId!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">姓名</label>

                <div class="col-sm-6">
                    <input name="userName" value="${ykGahz.userName!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">下单日期</label>

                <div class="col-sm-6">
                    <input name="billTime" value="${ykGahz.billTime!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">类型</label>

                <div class="col-sm-6">
                    <input name="akType" value="${ykGahz.akType!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">名称</label>

                <div class="col-sm-6">
                    <input name="productName" value="${ykGahz.productName!''}" type="text"
                           class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">渠道</label>

                <div class="col-sm-6">
                    <input name="channelType" value="${ykGahz.channelType!''}" type="text"
                           class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">金额</label>

                <div class="col-sm-6">
                    <input name="tjMoney" value="${ykGahz.tjMoney!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">成本</label>

                <div class="col-sm-6">
                    <input name="cost" value="${ykGahz.cost!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">体检实收金额</label>

                <div class="col-sm-6">
                    <input name="ssMoney" value="${ykGahz.ssMoney!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">现金</label>

                <div class="col-sm-6">
                    <input name="gatherA" value="${ykGahz.gatherA!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">刷卡</label>

                <div class="col-sm-6">
                    <input name="gatherB" value="${ykGahz.gatherB!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">180代收</label>

                <div class="col-sm-6">
                    <input name="gatherC" value="${ykGahz.gatherC!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">工资扣</label>

                <div class="col-sm-6">
                    <input name="gatherD" value="${ykGahz.gatherD!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">会员代收</label>

                <div class="col-sm-6">
                    <input name="gatherE" value="${ykGahz.gatherE!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">180开票</label>

                <div class="col-sm-6">
                    <input name="gatherF" value="${ykGahz.gatherF!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">健康之路代收</label>

                <div class="col-sm-6">
                    <input name="gatherG" value="${ykGahz.gatherG!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">业绩代收</label>

                <div class="col-sm-6">
                    <input name="gatherH" value="${ykGahz.gatherH!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">赠送</label>

                <div class="col-sm-6">
                    <input name="gatherI" value="${ykGahz.gatherI!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label">合计</label>

                <div class="col-sm-6">
                    <input name="hj" value="${ykGahz.hj!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="billEnd" value="${ykGahz.billEnd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="spareA" value="${ykGahz.spareA!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="spareB" value="${ykGahz.spareB!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="spareC" value="${ykGahz.spareC!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="spareD" value="${ykGahz.spareD!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-12">
                <label class="col-sm-4 control-label"></label>

                <div class="col-sm-6">
                    <input name="spareE" value="${ykGahz.spareE!''}" type="text" class="form-control"/>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button type="button" class="btn btn-primary" onclick="save();">保存</button>
</div>
</div>
</div>
<script>
    function save() {
        $("#" + "ykGahzForm").ajaxSubmit({
            success: function (data) {
                data = JSON.parse(data);
                if (data.returnCode == 1) {
                    $('#myModal').modal("hide");
                    $.showMessage({parentId: "showMessage", message: "信息保存成功！", type: "success"});
                    refreshTable();
                } else {
                    $.showMessage({parentId: "errorMessage", message: "<strong>错误信息</strong>：" + data.returnMsg, type: "error"});
                }
            }
        });
    }
</script>